package com.showgood.controller {
	import com.showgood.core.AbstractSimpleCommand;
	import com.showgood.socket.SingleSocketCommand;
	import com.showgood.util.StringUtil;
	import com.showgood.vo.ErrorVO;
	import org.puremvc.as3.interfaces.INotification;
	
	/**
	 * 远程出错信息提示
	 * @author BianPeng
	 */
	public class ErrorCommand extends AbstractSimpleCommand	{
		public function ErrorCommand() {
			
		}
		
		override public function execute(notify:INotification):void {
			var command:SingleSocketCommand = notify.getBody() as SingleSocketCommand;
			var vo:ErrorVO = command.data as ErrorVO;
			_logger.error(StringUtil.join('error command:', vo.command, ',message:', vo.message));
		}
		
	}

}

